package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;


/**
 * The persistent class for the EXAM_SITE database table.
 * 
 */
@Entity
@Table(name="EXAM_SITE")
@NamedQuery(name="ExamSite.findAll", query="SELECT e FROM ExamSite e")
public class ExamSite implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="EXAM_SITE_SIID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="EXAM_SITE_SIID_GENERATOR")
	@Column(name="SI_ID")
	private long siId;

	@Column(name="NOT_SCORE")
	private BigDecimal notScore;

	@Column(name="SI_DRESS")
	private String siDress;

	@Column(name="SI_NAME")
	private String siName;

	@Column(name="TEST_TIME")
	private Timestamp testTime;

	@Column(name="TIME_REMAINING")
	private BigDecimal timeRemaining;

	@Column(name="TURN_TIME")
	private Timestamp turnTime;

	//bi-directional many-to-one association to ExamPaper
	@ManyToOne
	@JoinColumn(name="EP_ID")
	private ExamPaper examPaper;

	public ExamSite() {
	}

	public long getSiId() {
		return this.siId;
	}

	public void setSiId(long siId) {
		this.siId = siId;
	}

	public BigDecimal getNotScore() {
		return this.notScore;
	}

	public void setNotScore(BigDecimal notScore) {
		this.notScore = notScore;
	}

	public String getSiDress() {
		return this.siDress;
	}

	public void setSiDress(String siDress) {
		this.siDress = siDress;
	}

	public String getSiName() {
		return this.siName;
	}

	public void setSiName(String siName) {
		this.siName = siName;
	}

	public Timestamp getTestTime() {
		return this.testTime;
	}

	public void setTestTime(Timestamp testTime) {
		this.testTime = testTime;
	}

	public BigDecimal getTimeRemaining() {
		return this.timeRemaining;
	}

	public void setTimeRemaining(BigDecimal timeRemaining) {
		this.timeRemaining = timeRemaining;
	}

	public Timestamp getTurnTime() {
		return this.turnTime;
	}

	public void setTurnTime(Timestamp turnTime) {
		this.turnTime = turnTime;
	}

	public ExamPaper getExamPaper() {
		return this.examPaper;
	}

	public void setExamPaper(ExamPaper examPaper) {
		this.examPaper = examPaper;
	}

}